package com.ms.demo.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ms.demo.entity.Emp;
import com.ms.demo.mapper.EmpMapper3;
import com.ms.demo.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpMapper3 empMapper3;

    @DS("test1")
    @Override
    public Emp selectEmpOneById1(Integer id) {
        return empMapper3.selectEmpOneById(id);
    }

    @DS("test3")
    @Override
    public Emp selectEmpOneById2(Integer id) {
        return empMapper3.selectEmpOneById(id);
    }
}